Skip to content

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 2 | Jq#419

Open
TarasMykytiuk wants to merge 1 commit intoCodeYourFuture:mainfrom
TarasMykytiuk:jq_exercises
Open

Glasgow | 26- SDC-Mar | Taras Mykytiuk | Sprint 2 | Jq#419
TarasMykytiuk wants to merge 1 commit intoCodeYourFuture:mainfrom
TarasMykytiuk:jq_exercises

Conversation

@TarasMykytiuk
Copy link
Copy Markdown

@TarasMykytiuk TarasMykytiuk commented Mar 23, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Jq exercises are done.

@TarasMykytiuk TarasMykytiuk added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Tools The name of the module. labels Mar 23, 2026
Copy link
Copy Markdown

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your solution looks good (except one typo).

You may want to check out these alternatives (especially those that use string interpolation):
https://github.com/CodeYourFuture/Module-Tools/tree/solutions/jq

Comment thread jq/script-02.sh

# The input for this script is the person.json file.
# TODO: Write a command to output the address of the person, all on one line, with a comma between each line.
jq -r '.address | join(" ")' ./person.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output does not quite meet the spec.

Comment thread jq/script-03.sh

# The input for this script is the person.json file.
# TODO: Write a command to output the name of the person, then a comma, then their profession.
jq -r '.name +", " + .profession' ./person.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to consistently leave a space around each operator.

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Tools The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants